define('formTransfer',['text!../tpl/form-transfer.html','tool','common','bootstrap'],function(Template,tool,common){
    var App ={
    	template:Template,
    	mixins: [tool.toor,common.common],
    	mounted:function(){
    		var _this=this;
    	},
    	data:function(){
    		return{
    			submitJson:{
				    "component": [
					    {
	    			   	  "name":"调动原因",
	    			   	  "value":''
	    			    },
	    			    {
	    			   	  "name":"原岗位",
	    			   	  "value":''
	    			    },
	    			    {
	    			   	  "name":"拟调入岗位",
	    			   	  "value":''
	    			    },
	    			    {
	    			   	  "name":"调动时间",
	    			   	  "value":''
	    			    }
				    ]
				}
    		}
    	},
    	watch:{
    		submitJson:
    		{
    			handler: function (val, oldVal) {
    				if(val.component[3].value)
    				{
    					val.component[3].value=new Date(val.component[3].value).Format('yyyy-MM-dd');
    				};
    				
    			},
                deep: true
    		}
    	},
    	methods:
    	{
    		
    	}
    };
    return {
        app:App       
    };
});